class Solution {
public:
    string modifyString(string s) {
        for(int i = 0; i < s.length(); i++){
            if(s[i] == '?'){
                s[i] = 'a';
                while((i > 0 && s[i] == s[i - 1]) || (i < s.length() - 1 && s[i] == s[i + 1]))s[i]++;
            }
        }
        return s;
    }
};
/**
 * 2022.1.6
 * 简单题简单做
 */